﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WebLibraryMaker
{
    public static class Merge
    {
        public static void DoMerge(string @out, string attributeFile, string[] assemblies, string key, bool delaySign)
        {
            ILMerging.ILMerge ilMerge = new ILMerging.ILMerge();
            ilMerge.OutputFile = @out;
            ilMerge.AllowDuplicateType(null);
            ilMerge.AttributeFile = attributeFile;
            ilMerge.SetInputAssemblies(assemblies);
            if (key != null) ilMerge.KeyFile = key;
            ilMerge.DelaySign = delaySign;
            ilMerge.Merge();
        }
    }
}
